package com.ydj.framework.module.city.entity.query;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ydj.framework.mysql.BaseQuery;
import com.ydj.framework.module.city.entity.DictCity;

public class DictCityQuery extends BaseQuery<DictCity> {
    public DictCityQuery(IService<DictCity> service) {
        super(service);
    }

    public DictCityQuery name(String name) {
        eq(DictCity::getName, name);
        return this;
    }

    public DictCityQuery level(Integer value) {
        eq(DictCity::getLevel, value);
        return this;
    }

    public DictCityQuery parentId(Long value) {
        eq(DictCity::getParentId, value);
        return this;
    }
}